<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Article</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
<link rel="stylesheet" href= "../assets/markdownLayout/git_md.css">
<link rel="stylesheet" href= "../assets/theme/theme_fresh.css">
<link rel="stylesheet" href= "../assets/hightlightStyle/atom-one-light.css">

<style>
    .markdown-body{
        box-sizing: border-box;
        min-width: 200px;
        max-width: 980px;
        margin: 0 auto;
        padding: 45px;
    }

    @media (max-width: 767px) {
        .markdown-body {
            padding: 15px;
        }
    }
</style>


</head>
<body>
    
    <!--header-->
    <div class="header">
    <header>
        <div class="logo"><a href="../index.html"><span>hh2o4</span></a></div>
        <nav>
            
                <li> <a href="#">articles</a> </li>
                <li> <a href="../contact.html">contact</a> </li>
                <li> <a href="#">pictures</a> </li>
            
        </nav>
    </header>
</div>

    <!--content-->
    <div class="content">
        <h1>[转载]如何在ubuntu14.04中使用shadowsocks</h1>
        <div class="info"><span class="date">发表时间: 2017-04-22</span></div>
        <article class="markdown-body">
            <h3 id="-shadowsocks">安装shadowsocks</h3>
<ul>
<li><code>sudo apt-get install python-gevent python-pip</code></li>
<li><code>sudo pip install shadowsocks</code></li>
<li><code>sudo apt-get install python-m2crypto</code></li>
</ul>
<h3 id="-shadowsocks-">配置shadowsocks服务器</h3>
<p>创建一个<code>json</code>文件用于填写服务器，以下为一个示例。</p>
<pre><code class="lang-json">{
  <span class="hljs-attr">"server"</span>: <span class="hljs-string">"xx.xx.xx.xx"</span>,
  <span class="hljs-attr">"server_port"</span>: <span class="hljs-number">8388</span>,
  <span class="hljs-attr">"local_port"</span>: <span class="hljs-number">1080</span>,
  <span class="hljs-attr">"password"</span>: <span class="hljs-string">"xxxxxx"</span>,
  <span class="hljs-attr">"timeout"</span>: <span class="hljs-number">600</span>,
  <span class="hljs-attr">"method"</span>: <span class="hljs-string">"xxxxx"</span>
}
</code></pre>
<h3 id="-">启动</h3>
<p><code>sudo sslocal -c YOUR_CONFIG_FILE</code></p>

        </article>
    </div>

    <!--footer-->
    <footer>
    
    <p>©2017-2018 &nbsp; (o^.^o) &nbsp; hh2o4</p>
    <p>Themed by hh2o4</p>
    
</footer>
    
</body>
</html>